<!DOCTYPE html>
<html lang="en">

<head>
    <title>新增保养计划</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../css/global.css" rel="stylesheet">
    <link rel="stylesheet" href="../css/iconfont/iconfont.css">
    <link rel="stylesheet" href="../css/patrolWork.css">
    <script src="../js/vue.js"></script>
    <script src="../js/axios.js"></script>
    <link rel="stylesheet" href="../css/nutui/dist/nutui.css">
    <script src="../css/nutui/dist/nutui.js"></script>
</head>

<body>
    <div id="app">
        <div class="app_header">
            <div class="app_headerLeft" @click="back">
                <span class="iconfont icon-arrow-left-bold"></span>
            </div>
            <div class="app_headerTitle">新增巡检计划</div>
        </div>
        <div class="app_main">
            <div class="app_mainItem">
                <div class="app_mainItem_label">计划名称<span>*</span></div>
                <div class="app_mainItem_inp">
                    <input type="text" v-model="form.name" placeholder="请输入">
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">保养范围<span>*</span></div>
                <div class="app_mainItem_inp">
                    <div :style="{color:form.patrolRange== '' ?'#D1D1D1':'#000'}">{{ form.patrolRange ||
                        '请选择' }}<span class="iconfont icon-arrow-right-bold"></span></div>
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">保养内容<span>*</span></div>
                <div class="app_mainItem_inp">
                    <div :style="{color:form.patrolContent=='' ?'#D1D1D1':'#000'}">{{ form.patrolContent ||
                        '请选择' }}<span class="iconfont icon-arrow-right-bold"></span></div>
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">计划周期<span>*</span></div>
                <div class="app_mainItem_inp">
                    <div :style="{color:form.patrolCycle=='' ?'#D1D1D1':'#000'}">{{ form.patrolCycle ||
                        '请选择' }}<span class="iconfont icon-arrow-right-bold"></span></div>
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">保养人<span>*</span></div>
                <div class="app_mainItem_inp">
                    <div :style="{color:form.people=='' ?'#D1D1D1':'#000'}">{{ form.people ||
                        '请选择' }}<span class="iconfont icon-arrow-right-bold"></span></div>
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">截止时间<span>*</span></div>
                <div class="app_mainItem_inp">
                    <div :style="{color:form.endTime==''?'#D1D1D1':'#000'}">{{ form.endTime ||
                        '请选择' }}<span class="iconfont icon-arrow-right-bold"></span></div>
                </div>
            </div>
            <div class="app_mainItem">
                <div class="app_mainItem_label">是否重复<span>*</span></div>
                <div class="app_mainItem_inp1">
                    <div :class="[form.isRepeat == 1?'app_mainItem_inpActive':'app_mainItem_inpDefault']"
                        @click="form.isRepeat = 1">重复</div>
                    <div :class="[form.isRepeat == 2?'app_mainItem_inpActive':'app_mainItem_inpDefault']"
                        @click="form.isRepeat = 2">不重复</div>
                </div>
            </div>
            <div class="app_mainItem2 marginTop10">
                <div class="app_mainItem_label">备注说明</div>
                <div class="app_mainItem_inp">
                    <nut-textbox v-model="form.note" :place-text="'请输入'"></nut-textbox>
                </div>

            </div>
            <nut-button block>确定</nut-button>
        </div>
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                form: {
                    name: '',
                    patrolRange: '',
                    patrolContent: '',
                    patrolCycle: '',
                    people: '',
                    endTime: '',
                    isRepeat: 1,
                    note: ''
                }
            },
            mounted() { },
            methods: {
                back() {
                    window.history.go(-1)
                }
            }
        })
    </script>
</body>

</html>